<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>抛枕头</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/new_file.css" />
	</head>

	<body>

		<div id="fatch">
			<div class="son">
				<img src="img/kaung.png" />
			</div>
			<div class="son1">
				<img src="img/zi.png" />
			</div>
			<div class="son2">
				<img src="img/yul.png" />
			</div>
			<div class="bian">
				<p>恭喜您获得了[六等奖]</p>
				<div class="zit">天猫官方旗舰店<span>50元</span>无门槛优惠券</div>
				<div class="honb"><img src="img/hb3.png"/></div>
				<p class="jihui">您今天还有2次抽奖机会，</p>
				<p class="jihui2">邀请好友参与可获得额外一次机会！</p>
			</div>
			<div class="di">
				<div class="Left">前往领奖</div>
				<div class="Right">邀请好友</div>
			</div>
			
			

		</div>

		<script type="text/javascript">
			document.body.style.height = window.innerHeight + "px";
			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
			}
			//字体大小 = 1rem单表示了多少个像素*设备的宽度
			
			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
			var Left =document.getElementsByClassName("Left")[0];
			var Right=document.getElementsByClassName("Right")[0];
			
			Right.addEventListener("touchstart",function(){
				window.history.back(-1);
			})
			
			
			
		</script>
	</body>

</html>